#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>

int main() {
	int a = 0;
	int b = 0;
	int c = 0;
	int d = 0;
	scanf("%d %d %d %d", &a, &b, &c, &d);

	int sum = a + b + c + d;

	float a_f = 0.f;
	float b_f = 0.f;
	float c_f = 0.f;
	float d_f = 0.f;

	a_f = ((float)a) / ((float)sum);
	b_f = ((float)b) / ((float)sum);
	c_f = ((float)c) / ((float)sum);
	d_f = ((float)d) / ((float)sum);

	if (a > 3) {
		printf("A:%.2f\n", a_f);
	}

	if (b > 3) {
		printf("B:%.2f\n", b_f);
	}

	if (c > 3) {
		printf("C:%.2f\n", c_f);
	}

	if (d > 3) {
		printf("D:%.2f\n", d_f);
	}
}